<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="300px" class="e-aside">
        <RouterLink to="/">Home</RouterLink>
        <RouterLink to="/students">学生列表</RouterLink>
      </el-aside>
      <el-container>
        <el-header class="e-header" height="80px">Header</el-header>
        <el-main>
          <RouterView />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.e-aside {
  height: 100vh;
  background-color: aqua;
}
.e-header {
  background-color: pink;
}
</style>
